﻿<%@ Control Language="C#" %>

<script runat="server">
    private int Admin_Group = 0;
    protected void Page_Load(object sender, EventArgs e)
    {
        Admin_Group = Utils.GetQueryString("typ", 0);

        Admins admins = new Admins();

        Repeater_List.DataSource = admins.List(Admin_Group);
        Repeater_List.DataBind();
    }
</script>

<table class="datas">
    <thead>
        <tr>
            <td class="w50"><%=Lang.Show("AdminId") %></td>
            <td class="w50"></td>
            <td><%=Lang.Show("Name") %></td>
            <td><%=Lang.Show("AdminGroup") %></td>
            <td class="w100"><%=Lang.Show("AdminLevel") %></td>
            <td class="w100"><%=Lang.Show("IsOnline")%></td>
            <td><%=Lang.Show("HostIP")%></td>
            <td><%=Lang.Show("Activation")%></td>
            <td><%=Lang.Show("IpArea")%></td>
            <td class="Narrow"><%=Lang.Show("Picture")%></td>
            <td class="Narrow"><%=Lang.Show("PurviewEdit")%></td>
            <td class="Narrow"><%=Lang.Show("Edit")%></td>
            <td class="Narrow"><%=Lang.Show("Del")%></td>
        </tr>
    </thead>
    <tbody>
        <asp:Repeater runat="server" ID="Repeater_List">
            <ItemTemplate>
                <tr id="TR<%#Eval("Admin_Id") %>">
                    <td><code><%#Eval("Admin_Id") %></code></td>
                    <td><img class="user" src="../DataFile/admins/<%#Eval("Create_Time","{0:yyyyMM}") %>/<%#Eval("Create_Time","{0:ddHHmmss}") %>_s.jpg" /></td>
                    <td><%#Eval("Admin_Name") %></td>
                    <td><%#Eval("Name") %></td>
                    <td><code><%#Eval("Admin_Level") %></code></td>
                    <td><span class="isonline_<%#Eval("Admin_IsLogin") %>"></span></td>
                    <td><code><%#Eval("Admin_HostIP") %></code></td>
                    <td><span class="lock lock<%#Eval("Activation") %>"></span></td>
                    <td><code><%#Eval("IP_Area") %></code></td>
                    <td><a href="Ploting.aspx?id=<%#Eval("Admin_Id") %>&lang=<%=Utils.GetLangId() %>&obj_typ=31&isreturn=1"><%=Lang.Show("Picture")%></a></td>
                    <td><a href="Menu-Edit.aspx?id=<%#Eval("Admin_Id") %>&lang=<%=Utils.GetLangId() %>"><%=Lang.Show("PurviewEdit") %></a></td>
                    <td><a href="Admin-AddEdit.aspx?id=<%#Eval("Admin_Id") %>&edit_mode=1&lang=<%=Utils.GetLangId() %>"><%=Lang.Show("Edit") %></a></td>
                    <td><a href="javascript:Del(<%#Eval("Admin_Id") %>,31)" class="del"><%=Lang.Show("Del") %></a></td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </tbody>
</table>
